package com.zengqingfa.springboot.validation.demo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author zengqingfa
 * @className UserCollectionDTO
 * @description
 * @create 2022/12/17 21:07
 */
@Data
public class UserParentCollectionDTO implements Serializable {

    @NotNull
    @Valid
    private List<UserCollectionDTO> list;
}